package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.Department;
import com.ecoolex.hotel.saas.entity.DepartmentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DepartmentMapper {
    long countByExample(DepartmentExample example);

    int deleteByExample(DepartmentExample example);

    int deleteByPrimaryKey(Integer departmentId);

    int insert(Department record);

    int insertSelective(@Param("record") Department record, @Param("selective") Department.Column ... selective);

    Department selectOneByExample(DepartmentExample example);

    List<Department> selectByExample(DepartmentExample example);

    Department selectByPrimaryKey(Integer departmentId);

    Department selectByPrimaryKeyWithLogicalDelete(@Param("departmentId") Integer departmentId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example, @Param("selective") Department.Column ... selective);

    int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example);

    int updateByPrimaryKeySelective(@Param("record") Department record, @Param("selective") Department.Column ... selective);

    int updateByPrimaryKey(Department record);

    int batchInsert(@Param("list") List<Department> list);

    int batchInsertSelective(@Param("list") List<Department> list, @Param("selective") Department.Column ... selective);

    int logicalDeleteByExample(@Param("example") DepartmentExample example);

    int logicalDeleteByPrimaryKey(Integer departmentId);
}